<head>
  <meta charset="utf-8" />
  <title>jQuery UI Autocomplete - Default functionality</title>
  
  <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

  <script>
  $(function() {
    var availableTags = [
      "ActionScript",
      "AppleScript",
      "Asp",
      "BASIC",
      "C",
      "C++",
      "Clojure",
      "COBOL",
      "ColdFusion",
      "Erlang",
      "Fortran",
      "Groovy",
      "Haskell",
      "Java",
      "JavaScript",
      "Lisp",
      "Perl",
      "PHP",
      "Python",
      "Ruby",
      "Scala",
      "Scheme"
    ];
    $( "#tags" ).autocomplete({
      source: availableTags
    });
  });
  </script>
</head>


<#include "header.ftl">


<div id="formBusca">
 	<@s.form action="search" >
        <label for="tags">Tags: </label>
		 <input id="tags" />

        <@s.submit value="Buscar"/>
    </@s.form>

</div>

<div>
<#if items ??>

<ul>
<#list items as i>
	<li>
  Codigo: ${i.code}
  Valor: ${i.price}
  Imobiliaria: ${i.imob}
  </li>
</#list>
  </ul>

</#if>
</div>

<#include "footer.ftl">